package com.example.fw;

import java.io.IOException;

public class ProcessHelper extends HelperBase
{

	private Process process;

	public ProcessHelper(ApplicationManager manager)
	{
		super(manager);
	}

	public void startApp() throws IOException
	{
		String command = manager.getProperty("app.path");
		process = Runtime.getRuntime().exec(command);
	}

	public void stopApp()
	{
		process.destroy();
	}
}
